.PHONY:all
all:client server
client:client.cc dict.pb.cc codec.cc
	g++ -g -o $@ $^ -std=c++11 -I./include -L./lib -lmuduo_base -lmuduo_net -lpthread -lprotobuf -lz

server:server.cc dict.pb.cc codec.cc
	g++ -o $@ $^ -std=c++11 -I./include -L./lib -lmuduo_base -lmuduo_net -lpthread -lprotobuf -lz 

.PHONY:clean
clean:
	rm -f client server